#include<stdio.h>
#include<string.h>
char tmp[400]; 
char* longestCommonPrefix(char** strs, int strsSize) {
	if (!*str) return NULL;
	int i,k=0,over=0;
	char* str;char ch;
	while(1){
		if (over) break;
		ch= *(*strs+k)==0;
		if (!ch) break;
		for (i=0;i<strsSize;i++){
			if (ch!=*(*(strs+i)+k)){
				over=1;
				break;	
			}
		} 
		k++;
	} 

	strncpy(tmp,(const char*)*str,k);	
	return tmp;

}
int test(char** strs,int n){
	printf("%s\n",longestCommonPrefix(strs,n));
}
int main(){
	char** c1={"abc","absd","abe","oaybcc"}; 
	test(c1,4);

	
	return 0;
}